
import QS from 'querystring';

// 获取search参数
export const getSearchValue = (field, _search) => {
    // const _search = window.location.search;
    if (!_search) return;
    return QS.parse(_search.slice(1))[field];
};